import 'package:get/get_navigation/src/routes/get_route.dart';
import 'package:get/get_navigation/src/routes/transitions_type.dart';
import 'package:todo_project/add_task/add_task.dart';
import 'package:todo_project/home_page/home_page.dart';
import 'package:todo_project/login_page/login_page.dart';
import 'package:todo_project/login_page/register_page.dart';

class RouterManager {
  static const String ROUTER_MAIN = "/";
  static const String TASK_LIST = "/task/list";
  static const String ROUTER_ADD_TASK = "/task/addTask";
  static const String REGISTER = "/account/register";

  static List<GetPage> routeList = [
    GetPage(name: ROUTER_MAIN, page: () => const LoginPage()),
    GetPage(name: REGISTER, page: () => const RegisterPage(),transition: Transition.circularReveal),
    GetPage(name: TASK_LIST, page: () => HomePage()),
    GetPage(
        name: ROUTER_ADD_TASK,
        page: () => AddTask(),
        transition: Transition.rightToLeftWithFade),
  ];
}
